Fix undefined object.
Merge pull request #6 from wibimaster/Fix_Undefined_Object

Fix undefined object.