Errors in CPackDetector corrected

Some errors in CPackDetector were corrected