fixed write i8/bool