Fixing the issue where a method defined in global scope could not be accessed in the DSL delegation code