Fixed a bug, exporting only if --exports is given