fix loading and result saving problem