Fixed the scroll is not set to the right position