reposync: fix world variable to local variable issue