An ex post facto law is a law that retroactively changes the legal consequences or status of actions that were committed, or relationships that existed, before the enactment of the law. From Wikipedia