Fixes deprecations.