fix elsif bug
Merge pull request #109 from wgerlach/master

fix elsif bug