fix convert to byte array for bigints