fixed a bug in scrolling before appending the obj