fix bug for files without extensions