a bugfix for "if" and "while"