Fixed error for next and prev member.