fixes some URL flaws