Fix ip header assignment.