fix error throws for equation system