fix phase check in isolated scopes