Small Crash Fix

Fixed a crash due to the X and Y values for the map grid not matching
the number of characters being parsed.