Fix debugger and profiler graphical bug