Fixed the setreposiotry problem