Fixed incorrect path function.
Merge pull request #2 from alanly/develop

Fixed incorrect path function.