Fix excel export issue