Fixed issue with degree added multiple times if there are multiple required units