Fixes issue with map refresh