Fix for unintentional overflow of uint8 to 0

Oops.