bug in file name detection