Fixing var declaration