query fix string comparison