Corrected uint8_t bugs