Fixed an overflow issue