fixed id=-1 regression