fixed strange structure of if node