Fix shouldShowAfterGap helper