Fix implicit global declaration