Fixed another integer overflow bug