Fix debugger and profiler graphical bug

Fix a little mistake (using debugger instead of profiler).
And updating the AuiManager after that seems to completely fix the graphical glitch.