Fix globals check