Fixing uninitialized repo bug.