Fix bug in consume method