fix closing packageselector dialog