Debug window fix