Fixed problems on repo syncing