fixes most broken paths