(cherry picked from commit e26d65aa55726e330f6806aa1abfe05ac6801619) Co-authored-by: zx <me@char.moe>