solved bug with url parsing