change flycheck-mode-on to flycheck-mode