CLOUD-7 fixed bug in repository layer