fix base ID check

Use correct base ID objects for comparison.
remove member access using this
Merge pull request #11 from maggu2810/fix-set-baseid

fix base ID check