Fixed stupid crash when loading map from file