fixed initial values for edit event