Fixing the synthesisPanel. When it closes, the synthesis which is being edited closes