Correctly parses id attribute for CPK.