Fixed incorrect path function.