Correct localenv function name with TPA standards