corrected a bug in the operator++() methods