Avoid deprecation warning