fixed nil values for records