fixing bugs with recording segments