fix: write back bug when no package is installed