fix base ID check

Use correct base ID objects for comparison.