Fix to error in collapse

I am using the default config without any modification the collapse is prevented. This fixed it.