fixed a scrolling memory issue