fixed local-var type error handle