500 Error found! TypeError: Cannot read property 'lat' of null