fixed stdClass issue