fix bug: res_hash doesn't have size field