only show closed indices when there are some. fixes 422