merge after_ra and finish phase, and move stack_bias fixing into backends