fix ip_state truncation error