Bug fix for the attendency switch.