[FIX] Packages doesn't upgrade correct.
Unused code removed.