fixed wrong location for edit erb