fixed byte adding bug

was not handling overflow correctly