Correct the resizing of Map