fix color of global grade
fix when publish old transcript on a period without specialization, while the students are currently already assigned to a specialization