fix product type and brand if nil