fix the debugging with the Gui