Fixed a bug

Fixed a bug that cannot recognize a folder correctly