fixup! Fix display mode when opening panel