fixes selection buttons disabled after second opening of the dialog
introduced with 883e9f996055149b113f1085d9d48dedf14a7737