editMode() bug fix fixed