Fix the package repetition bug