fixed small bugs in package detection
fixed small bugs