Fixed a bug in the Tiled renderer