[BUGFIX] Save PackageStates.php after deletion