Fix map tile generation.