Applying patches or flexible valve inserts