Fixing small bug when a record doesn't have attributes