Fixed the reusing issue when generating the views for swipe view.