Bug fixes

Changed the product 'summarize' method. Fixed some bugs that were
introduced along with previous changes.