Fix logic in repository file.