fixed referring stdClass as array