correct checkpackageDep bug
fix other issue with checkpackageDep