Fixing deprication error [#43026295]