workaround bigint problem on 32bit system for tonce