Fixes selecting incorrect students