reposync: finally fixed issue, forgot to clear variable