Fixed issue #48
Merge pull request #49 from Piwosz/master

Fixed issue from #48