fixed problems with while block, control.g now produces correct graph for 4.mini