bugfix for pgsql (status=0 ipv status==0)