fix media stats endpoint url