pattern fix