Fix rule deletion, passing idrow to rule class instead of index counter