fixed when grouping disabled, window closing crashed the panel