Fix function reflection PR code