fixes for degree() relationships