fix for empty record