fix to hide left panel when debug selected