Fixed a missing where condition that leads to 1 item/ip globally. (closes #5)