Fix for issue 1: In correct parsing of root URL throus panic