fixed crash when resizing tileMaps