fix module chaining with recording