Fix: redirecting issue of plugin in woocommerce 2.1.2