Corrected next and prev member methods.