Making the degree name correct at the end of the document too
(completes issue #441)