Fix invalid paths