fixed bug in ComareGenHyp()