fixed bug with map being loaded two times