Swap x and y in grid interpolation. It used to be grid[x][y], now it's grid[y][x].