fixes #39
Merge pull request #41 from ablasdel/issue_39

fixes #39