fixed box sizing bug on patterns