Fix bug causing unselectable editor