ModSwipeBack: code improvement