Fixed bug in creating map boundaries.