Fixed encapsulation of record in model.