fixed warning message about ID not set in return array