fix lhs in local decl check