bugfix when url is too long