fix issue:swipe the last card crash.