fixed `next` pointer and `ext_repr` issues