fixed bug in repository