bug fix for excel export