Fixed a bug where nothing was exported in release mode.