fixing NGINX bugs