Fix fencepost error in the coordinate transform code.