Fix issue with spj_iterator_getc