Fixed some issues in the TileSelector