fix else after tail call
Merge pull request #447 from mk270/tva/export

fix else after tail call