Fixed swipe bug triggering with null elements.