fixed a memory leak with settings panes