fixed bug with cascading errors