Remove expected symbols from error nodes