fix rule list row counting