fixed editing mode.