fix bug of repository