fix incorrect padding for pattern styles