Fix function to local.