Variables weren't shown in else if() heads and other nested if() structures