solve product error return nil value