fix bug for recover from tar file