fix null problem in class_setting page