fix bug for local packages