fixed bug in file types