fix bug with root URL