fixed bugs with complicated lines

such as: foo(a(), b(a, c, fi())).aghj(a, d).go.