Fixed crash on closing config selection dialog