Fix FunctionInvocations registering themselves.