Correct a path