Rules can be made retroactive, sure.
But to make the punishment retroactive is ludicrous!