Fix pkey data type