fix cannot save log