fixed error if product has no weight