Fix collapsed state taking priority over hidden state.