Correction of minor problems (undefined variables).