fixed scrolling problem with editor