fixed js error when adding a product type group