fix stdClass bug