Fixed uint8 all zeros bug