Fix deprecation warning (#3574)

1 file changed