fix the bug: add cf to check