fix bug cl_logic.c and cl_logic.h