fixing a bug in detachment code
Merge branch 'master' of https://github.com/Fathalian/nestor