Fix scroll to location problem