fix to the ticket update function