handle closed indexes properly