fixed query in addfullhash.