Fixed deprecated method
Merge pull request #3 from ARNHOE/patch-1

Fixed deprecated method