Fixing a TileFactory bug.

The id converter was offset by 1.
Merge branch 'master' into temp