fix bug on error