fix a urgent bug for package folder deploy