Fix deprecation warning in 24.4