correcting u_int16_t