Fix function ref in schema