Fixed a bug referencing TilePainter.