fixed the threshold and file flushing for the subreddit selector