fixed hyper ref bugs