fixed bug on error lines