Fixed the bug about splitting the path

Fixed the bug about splitting the path