fix a problem where errors where shared by models