fixe export bug (array not reset).