fix Int overflow exception