fix format bug of editor