fix missing globals.