fix product create and product update with categories