Fixed a bug in the diary with pain registrations not showing up.