fix bug in hyp