fix key globals