fix a bug in file exploring