fixing map scrollto function