fixed export failure;closes #1231 closes#1232
Merge pull request #1239 from affektive/export

fixed export failure;closes #1231 closes#1232