Fix another bug in record details view. Did a small reconstruction.