fixes bug in IDE editor