fix bug on globals.py