fix: rules query failed