Fix pkg was not installed after a removal with pkg delete.