fixed critical error in url creating