fix setting hostname to instanceid