Fix unintended switch from a constant to a global in 56a3c0bc4634