Fix function visibility