Fix array index mistake, save response in sample folder for use