Fix ticket migration