Fix bug concerning 'permanent' editing mode