patch style if target style is valid