ID compare fix