Minor Fix #2

Modify function local