fixed another NPE with exporting