fix :if tag infer