fix pkey.read method