Fixed problems in analysis_class.