clearTiles bugfix