fix bug related to local variable name