fix getProductNames bug