Bug fix on students exit from queue