Fixing flycheck mode hook.