fixed string comparison error