fixed potential number overflow