fix error throws