Fix bug undefined access stdClass.

Fix bug for #16