Fix number overflow exception