records: fix for export handler

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