Ex post facto laws protect people from being criminally prosecuted after the fact, it has nothing to do with correcting badly written legislation or assisting the victims of immoral laws. According to your theory, only slaves AFTER the 16th amendment would be free.
You don’t have to be an attorney to realize this...but it helps.
Now, why don't you show us all the examples of a new criminal statutes being retroactively by Congress as to nullify actual verdicts rendered in criminal trials. I'm sure over the period of nearly 200 years there must be a vast multitude of examples/ precedents. A new criminal statute cannot be applied retroactively either to nullify verdicts after the fact or to prosecute people (after the fact). Such a precedent, if upheld, would unfortunately cut both ways.