Remove duplicated code
Fix a coredump
Merge pull request #1 from yummybian/master

改了两个地方，包括find操作时引起的coredump