small compare fix