wrong comparison with min_size