fix crash after getting a map loading error