added missing length attribute to PK