Fixed Repository Bugs