bugfix for #109 - take into account shortened url length