fix overlay repository to correctly clear