Fixed two bugs with reading categories from the Excel file.