fix updating partitions doesn't leave empty partitions anymore