patterns fix