Bug degrees fixed

Fixed bug on degrees