Fixed dangling elseIf bug in compiler.