Fix exporting for non-interactive apps