Fix for woocommerce 1.6