Fixed a bug with the click in the editor.