Fixed bug in congestion window. Closing #641