bug fix on editor