corrected unsigned short issue