Bugfix when location is not available