Fixed issue with incorrect repository and not resetting repository.

Signed-off-by: Daniel (dmilith) Dettlaff <dmilith@verknowsys.com>