Incorrectly used int16 instead of uint16 for data