fixed printing error with uint8_t