Fixed issue with counting of default programs.