Correct retrieval of next and prev member