bug fix (different handling of stdClass through php versions)