Correcting type to uint8