Fix an error in the pose estimator