Web-app: Fixed the "take attendance bug"