Fixed mechanism to locate errors in the editor