StartDirary.sh: fix the first pull problem; dm.sh: fix the empty will affect label/protect/current indices bugs