Fix index breaking when there are no contests