correcting bad urls