fix for id of undefined error
Merge pull request #257 from dbankier/bug-fix-3.2.0

fix for id of undefined error