Maybe before destroy here, we could check that the actual value of the `sidebar` are actually updated properly.