fixed dirty flag (when selecting an expression the editor was marked dirty even if there were no changes made)