fix a bad strcmp. thanks valgrind!