fix compact IP4 allocation bug