Fix double var declaration