fix attribute alignment for rules