removing debug parameter from the url