Fixed a problem with varying sized tile sets on the same map layer.