fix bytes -> int32 bug