[cs] generate the variables of the fixed statement in the correct place, as one fixed var may depend on another