fix typo
fix globals