Logic Error - id not set