Exporting recorder script to bot task failed. Unable to process template with name: IfAction.ftl

I tried to export a simple record script but failed. The error message showed: “Recorder script code export failed. Unable to process template with name: IfAction.ftl.”
The version I am using is 2.4.0

image