bugfix for editor focus