fixed problem with rank=null right after adding/removing a student
with some magic :)
I have no idea what I'm doing