fix lastest_backup function