Fix invalid return value of Path() function.