fix null function call