Fix for out of scope fall out when nesting level > 3