fixed context global vars