Fixed bug with editor locking.