fix issue where package generation fails