fixed bug where map pages wouldnt load correctly.