Fixed common integer overflow error