fixed calling ifdeftoif process with the non replaced AST