Fixed deprecation messages.