fix a bug in pattern reassignment of mixed pattern cleanup