Take first element of dictionary to render url with pattern, but this is not the best solution fix it.