Fix MajorFunction initialize error