Fixes bug that resets panel configuration on panel deletion