Fixed global-flycheck-mode and ecb hooks.