fix strcmp misuse