Fixed file type recognition.