Fix function_template's weak callback.