Fixes deprecation notices.