Hey Boroko, Why not use FineLine viewer? It's free.. It will show you what IF's and ENDIF's are connected and tell you where the problem is.

Dave Purola,
N8NTA