fix  the bug of  editor