500 Error found! TypeError: Cannot read properties of null (reading 'lat')