fix location in edit event