Fixed deprecation.