fixed bug with loading maps