Compute the id correctly.