Fix tiling functionality.