fixed index out of range bug on product list