fix bug for limit the length of the url