Fix checking of style-type.