Fix overflow problem.