Fixed a rare memory corruption error when roundoff causes tile indices to be wrong