Bad ID comparison fix