Fixes bad urls