[backport] for #3198