fix issue #51
Merge pull request #53 from medvid/master

fix issue #51