fix an overflow issue