fixed bug when exceeding data type limit