fix "object has no attribute" error
Merge pull request #1 from tygernach/master

fix "object has no attribute" error