Fixed wrong line in compiler
Fixed issue with nested childscope by moving childscope creating to the true condition