Fix deprecation warning
Merge pull request #104 from eile/master

Fix deprecation warning