Script to fix packages