Fixed handling of package/patch/product deselection
added comments