fixed map resizing issue