Fixed bug with tile cleanup