fix bug with '#' on url