fixed the collapse animation I had broken on the previous commit