Remove document from vars.