fix math error, #18333