fix calculation of (x_pb, y_pb)