map resizes correctly now