How to end a collapse without using another collapse