Small fix for forgotten deprecated warning
Merge pull request #982 from wpoely86/smallfix

Small fix for forgotten deprecated warning