:D fixed the bug when debugging. This bug was in the visualizer being connected to the mainwindow.