Fixed a bug in retrieving file’s name.