fix bug in ticket's controller when update fails