fixed maps loading bug