fix bug with full url scheme