Ticket status change

Minor fixes on ticket state change.