Fix orphan scope

A orphan scope is a scope with a unknown parent