fix return None in cb