records: fix usage of calculated fields

Signed-off-by: Jiri Kuncar <jiri.kuncar@cern.ch>