Small bug fixes (interferences between some modes and panels, sometimes related to folding)