Logic fail.
Also, why did cur work when it should have been cur.ID?