fixed an undefined tileset issue when adding a new Tile through the `seTile` function