catch IndexError