Fix minor error in passing file type