fixes collapse elements