Fix function loading.