Fixed a bug of file identification