Fixed a bug with status changing of a ticket.