minor clean
Merge pull request #1966 from coolwanglu/pr1

Clean currExternalFunctions