fix #10399: correctly calculate row and column for wells
Remove trailing space (trivial)
Merge pull request #803 from mtbc/trac-10399

fix #10399: correctly calculate row and column for wells