bug fixes in pose estimator