Correctly size map prior to putting into it