Dont seems like you need to convert bools to ints when the source is a Uint8Array :)