fixes nginx basic auth bug