sidebar: Fix expander state