Fixes global functions being broken.