fix bug with repository