futher attempt to fix the scroll offset