fix for vertex track counting (important when IVF is used)