Fixing tiling problem