fixed scope cleanup when leaving an include