new stdClass() fix