Fixed warnings
Fixed bug that cause the app to potentially crash when user closes the map activity while map is downloaded