fix double building during packaging