[mr3123] fix wrong local declaration