HA-libs: fixed buf2uint16