- Fix return checking on global scope