Fix for nginx compat