Removed the error where we were unconditionally dividing by orig_x even if n_recur==0.