MADS: Some bugfixes to the debug console