Fixing deprecation warning [#43026295]