Fix Tile X/Y calc in detour