Fix globals exception
Fix globals