fix "if" BUG