Fix anonymous function pointer return type