Fix degree UI's after changing routes.