Fixed deprecation warning
Merge pull request #207 from Wikia/deprecated-fix

Fixed deprecation warning