Fix rule fetching