Correct bug when using footer and header views in swipelistview.