Fix screen corruption in debugger