fix the bug of editor that will change it size