Fixing badly installed SP packages