Fix error in ticket edit and new for autocomplete