Correct error in id building