ticket generation fixed