Fixed some more pitfalls that hurt working with game maps of maximum size.