Fixing buggy scroll to top