fix issues with hqmf for comparison and update hash generation to replace child ids before building the hash