fixed error when adding new products