fix excel export script