Bugfix.
Fix deprecations.