fix setViewerPose implementation