fix nginx-mode hook