Fix missing globals