Fix debug window getting stuck on, Possibly fix rotation issue