bug fix in loading saved algorithms