fixed map refresh bug