Bug in not saving the recording in the array