fixed typos in refactoring from internal environment