bugfix: isScopeComplete now recurses properly