Fixed Data Export

Fixed a bug preventing the export of data from the main menu.

Courtesy of Ben B. & Timothy L.