fix counter and nested block element alignment