Fix function grepping