fix max uint32/64 values read/write