solve different colours in teacher graph bug