fix xsgs rule