fix bug
Fix min_confirm and max_confirm