Bug fix for nginx