Fixes globals.