fix a problem where errors where shared between models