fixed saving crash caused by undefined function