fix next/previous pointers for table initialisation