[bugfix] the same thing as the previous commit may happen in xh_put
prefer size_t to unsigned for number to get access to array element