Misc bug fix and enhancement
Merge pull request #2 from yangshuxin/lgcpath

Misc bug fix and enhancement