Error correction in the Generator