Prevent consecutive same pattern in completeBeforeRepeat mode.