Fix to eliminate deprecation notice.