Use the prev() function instead of directly accessing the member.