Fixed bug in ticket edit action and form