This should be an actual fix to the bug
Merge pull request #30 from TisButMe/fix-chain-removing-bug

This should be an actual fix to the bug #19, and maybe to #29 ?