fixing url length bug