Fixed reading Record as a top level