Fix function def