fix Int32, Int64, IO, maybe not the fastest currently, but it seems to work