fix a bug in redeclare involve short var declaration