fix local mode option