bug: fix incorrect conversion of large numbers