Fix (better said, switch) assignment of if conditions