Changed self.export to self.config.export.