Fixed the updateLectureRestrict bugs