fix fetch packages for hanging issue

Change-Id: I228441fa1fbe45bfa216c7d6f636b4b5eb09470e