Fix a bug with empty tiles