fix a bug in mixed pattern handler