Fix companyrepository class