fix overflow

fix overflow from @clowwindy DEV.