fixed unexpected problem with map loading