fix phase check in isolated scopes
Merge pull request #56 from Nieziemski/master

fix phase check in isolated scopes