fix double var declaration