"penalty was a misdemeanor, violated the Ex Post Facto Clause of the federal Constitution." . . . .