api: fix crash when cf removed