fix null function pointer