Fixed update repo bug