Fixed declaration of vars