Fix another deprecation warning