fixed a small glitch when dealing with potential ids