fix when a transcript object is undefined