Fixed issue with processing globals