Fixed the expanding and collapsing.