fix bug after upgrading to nginx 1.6.1

https://bugs.launchpad.net/nginx/+bug/1366651