fixed to woocommerce 2.0 RC1