Accumulator value error fixed. The problem was that we were using bad values for coordinates.