Fix a few bugs with the pose conversion function.