Fixed stats URL parsing