Fixed - any statement should break the nested if-else statements.