fix warnings about name local variable