Fixed delete unaffiliated snippet bug

![bug](https://f.cloud.github.com/assets/3147345/1536696/bc4657e0-4cb6-11e3-8d34-3f44cd2013e4.gif)