fixed writing scrolling position