Remove leftover patterns