fixed typo in global vars