Fixed a bug in Tile class