fixing a depreciated warning / fixing issue #25
Merge pull request #26 from D-Roch/master

fixing a depreciated warning / fixing issue #25