fix issue #23
Merge pull request #24 from szelga/fix_23

fix issue #23