bug fix of more than 1 var decl on method