Fix recursive calling issue in concatPackage.