make url stat query more efficient
prevent /0