Fixed SMO crashing when trying to open the schoolyear_dialog