fix busted indexOf check in tiling