fixed Bug: Tickets not getting saved properly