fixed bug with varnish states