fixed wrong header when default URL used