fix minor bug with string compare