Fixed bug with file type.