when fixing up variables, x0 initialization was missing the clipping to the fixed value