Fixed scrolling bug when editing