Fix pattern offset