Fix to error

I am using the default config without any modification the collapse is prevented. This fixed it.
Merge pull request #9 from jibwa/patch-1

Fix to error in collapse