fixed crash in control panel when no device is loaded