Fixed deprecated call.
Merge pull request #14 from lluixhi/master

Fixed deprecated call.