Correct check ids for equality