Fix export incosistence.
closes #215.