Fixed bugs in Condition and IfTag.