Deal with IndexError too.