Fixed If and While Pattern bug involving multiple layers of nesting #151