Tile filling works properly now