fix comparison error