Fixed error if geoposition is not availabel