Fixed a very sneaky bug that prevented export from working when the
confirmation dialog would be shown.