Fix calculating of degrees.