handle rule == null