Fixes a bug when using fade and swipe