fix a rejoining issue induced by mixed pattern cleanup