add ha_len field, fix entry update bug