fixed bugs in varnish_enable and varnish_disable apis.