Had an error with variable definitions (setq for modes)