Bugfix around consume()
Merge pull request #627 from bhariharan/master

Bugfix around consume()