Fixed issue #1. Bug with iterate_products