The fix in fa19e84714 was incomplete, as it was still using the wrong output's initial rotation to compute the position.
fa19e84714