Finally fixed te scroll to top bug.