Fix weird back button behaviour in editor. fixes #71