more debug
fix max_in_flight last message issue