Avoid a deprecation warning