api: fix fatal
collector: fix fatal