Fixing a typo in the generated code.
Specifying the scope of dedispersionFunc.