Looks like this is intended to rebuild the scope path.. aren't the "::"'s missing if so?
However, given previous comments above re. qualified managed scopes, I think will need to change anyway.