Fix a typo in the consume method.